package com.xxh.springclouddemo.gatewayprovidertwo.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author xxh
 * @Date 2024/4/16 20:45
 */
@RestController
public class GateWayProviderTwo {

    @Value("${server.port}")
    private String port;

    @RequestMapping("/getport")
    public String getport(){

        String  str = "我的gateway2号，端口号是："+port;

        return str;


    }

}
